/**
 * @File Name: communication_factory.cpp
 * @brief  
 * @Author : LiWanglin email:lwl510ll@163.com
 * @Version : 1.0
 * @Creat Date : 2024-01-28
 * 
 * @copyright Copyright (c) 2024 LiWanglin
 */

#include "communication_factory.h"
#include <string.h>

Communication *CommunicationFactory::creat_communication(const char *name)
{
    Communication *comm = NULL;

    if (strcmp(name, "tcp") == 0) {
        comm = new TcpCommunication();
    }

    return comm;
}